import { tableServiceInterface } from "@/common/interface/table.interface";
import { $AddProduct, $getProductList, $productDelete, $productDetail } from "@/apis/product/product";
import { addproductInterface, productListInterface } from "@/apis/product/product.interface";

export default class ProductListService implements tableServiceInterface {
  async getTable(e: productListInterface): Promise<any> {
    return $getProductList(e);
  }
  add(e: addproductInterface): Promise<any> {
    return $AddProduct(e)
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    return $productDelete(e);
  }
  detail(id: number): Promise<any> {
    return $productDetail(id)
  }
}